package com.zy.springcloudconsumer.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * @program: spring-cloud
 * @className: UserFeignService.java
 * @description: 用户Feign服务接口，用于调用生产者提供的接口服务
 * @author: ZY
 * @create: 2020年11月19日 14:59
 **/

@FeignClient(name = "spring-cloud-provider")
@RequestMapping("/user")
public interface UserFeignService {

    @GetMapping("/getUser")
    Map<String, Object> getUser();
}
